package com.example.blog.admin.vo.param;

import lombok.Data;

@Data
public class PageParams {
    //当前页数
    private Integer page = 1;
    //每页显示的数量
    private Integer pageSize = 10;

    private Long categoryId;

    private Long tagId;

    private String year;

    private String month;

    public String getMonth() {
        if (this.month != null && this.month.length() == 1) {
            return  "0" + this.month;
        }
        return month;
    }

}
